home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / dev_libs / feelin040718 / sources / dataspace / private.h < prev    next >
C/C++ Source or Header  |  2004-08-03  |  1KB  |  60 lines

  1. /*
  2.     FC_Dataspace Header
  3. */
  4.  
  5. #include <exec/memory.h>
  6. #include <libraries/iffparse.h>
  7. #include <libraries/feelin.h>
  8.  
  9. #include <proto/exec.h>
  10. #include <proto/iffparse.h>
  11. #include <proto/utility.h>
  12. #include <proto/feelin.h>
  13.  
  14. extern struct FeelinBase           *FeelinBase;
  15. #define SysBase                     FeelinBase->SYS
  16. #define DOSBase                     FeelinBase->DOS
  17. #define UtilityBase                 FeelinBase->Utility
  18. extern struct Library              *IFFParseBase;
  19.  
  20. /*** Dynamics **************************************************************/
  21.  
  22. enum    {                                       // Methods
  23.  
  24.         FM_Dataspace_Add,
  25.         FM_Dataspace_Remove,
  26.         FM_Dataspace_Find,
  27.         FM_Dataspace_Clear,
  28.         FM_Dataspace_Merge,
  29.         FM_Dataspace_ReadIFF,
  30.         FM_Dataspace_WriteIFF
  31.  
  32.         };
  33.  
  34. enum    {                                       // Attributes
  35.  
  36.         FA_Dataspace_Pool
  37.  
  38.         };
  39.  
  40. /*** Structures ************************************************************/
  41.  
  42. struct LocalObjectData
  43. {
  44.     ULONG                           Flags;
  45.     APTR                            Pool;
  46.     struct FeelinList               Chunks;
  47. };
  48.  
  49. struct FeelinChunkData
  50. {
  51.     struct FeelinNode              *Next;
  52.     struct FeelinNode              *Prev;
  53. /* end of FeelinNode header */
  54.     ULONG                           ID;
  55.     ULONG                           Size;
  56. /* data bellow */
  57. };
  58.  
  59. #define FF_Dataspace_Allocated  (1L << 0)
  60.